:root {
    --primary-color: #F8BE12;
    --secondary-color: #000;
    --background-color: #fff;
    --text-color: #333;
}

.select2-selection {
    /* padding: .375rem .75rem !important; */
    border: none !important;

}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 8px !important;
}

#validation-result .alert-danger {
    overflow: scroll !important;
    height: 400px !important;
}

.format-table {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #ddd;
}

.format-table thead {
    display: block;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 2;
}

.format-table tbody {
    display: block;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: scroll;
}

.format-table th,
.format-table td {
    padding: 8px 12px;
    text-align: left;
    min-width: 150px;
    border-bottom: 1px solid #ddd;
}

.format-table thead tr,
.format-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}


.selection {
    display: block;
    width: 100%;
    padding: .375rem 2.25rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--bs-body-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--bs-body-bg);
    background-image: var(--bs-form-select-bg-img), var(--bs-form-select-bg-icon, none);
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}



#sidebar {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1050;
    height: 100vh;
    width: 250px;
    background: var(--secondary-color);
    transition: all 0.5s ease;
    display: none;
}

/* Slide in */
#sidebar.slidein {
    display: flex !important;
    flex-direction: column;
    animation: slide-in-left 0.3s forwards;
}

/* Slide out */
#sidebar.slideout {
    display: flex !important;
    flex-direction: column;
    animation: slide-out-left 0.3s forwards;
}

@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slide-out-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}


.main-wrapper {
    display: flex;
    /* overflow-x: hidden; */
}

.btn-close {
    font-size: 24px;
}

#loader {
    position: fixed;
    z-index: 9999;
    background: white;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cust-btn {
    background-color: var(--primary-color);
    border-color: var(--background-color);
}

.cust-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--background-color);
    color: var(--primary-color) !important;
    transition: cubic-bezier(0.645, 0.045, 0.355, 1) 0.3s;

}

.sidebar-brand {
    /*position: absolute;*/
    top: 0;
    /*width: 250px;*/
    text-align: center;
    padding: 20px 0;
    display: flex;
    justify-content: space-around;
}

.sidebar-nav {
    width: 250px;
    margin: 0;
    padding: 10px;
    list-style: none;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
}

.sidebar-nav>li {
    text-indent: 10px;
    line-height: 42px;
}


.sidebar-nav>li a {
    display: block;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 8px;
    /* slight rounding */
    transition: all 0.3s ease;
}

.sidebar-nav>li>a:hover,
.sidebar-nav>li.active>a {
    text-decoration: none;
    color: var(--background-color);
    background-color: var(--primary-color);
    font-weight: 700;
}


.sidebar-nav>li>a i.fa {
    font-size: 24px;
    width: 60px;
}

.main-content.blurred {
    filter: blur(2px);
    transition: filter 0.3s ease;
    pointer-events: none;
}

/* Backdrop overlay */
#sidebarBackdrop {
    position: fixed;
    inset: 0;
    /* full screen */
    background: rgba(0, 0, 0, 0.25);
    display: none;
    /* hidden by default */
    z-index: 1040;
    /* below sidebar */
}

@media only screen and (min-width: 768px) {
    .main-content {
        width: 100%
    }
}

@media only screen and (max-width: 768px) {
    .nav-container {
        justify-content: end !important;
    }

    .sidebar-nav {
        padding: 5px 10px;
        width: 90% !important;
        text-align: center;
    }

    .sidebar-nav>li a {
        font-size: 16px;
        padding: 5px 10px;
        width: 100%;
    }

    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 75% !important;
        height: 100vh;
        z-index: 1050;
    }
}